home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
util
/
arcer
/
gnutar10.lha
/
GnuTAR
/
GNUTarSource.LHA
/
source
/
sasinclude
/
ndir.h
< prev
Wrap
C/C++ Source or Header
|
1995-07-23
|
1KB
|
63 lines
/* Added since the Amiga version will not compile with SAS/C V6.55,
"ndir.h" couldn't be found.
On the other hand, some defines had been missing, so placing
the appropriate includes here was the best solution.
- AK, 28.3.95
Set S_IF... flags to NULL to get correct results for amiga (was hpw)
- AK, 23.7.95
*/
#ifndef NDIR_DUMMY
#define NDIR_DUMMY
#include <dos.h>
#include <sys/dir.h>
#ifndef _FILE_
#include <sys/file.h>
#endif /* _FILE_ */
struct direct
{
struct dirent x;
};
#ifndef NDIR_AMIGA_UNIX_NETWORK
#define S_IFCHR 0000000
#define S_ISUID 0000000 /* SAS/C misses these */
#define S_ISGID 0000000
#define S_ISVTX 0000000
#else
#define S_IFCHR 0020000
#define S_ISUID 0004000 /* SAS/C misses these */
#define S_ISGID 0002000
#define S_ISVTX 0001000
#endif /* NDIR_AMIGA_UNIX_NETWORK */
/* unimplemented signals yet... */
#include <signal.h>
#define SIGPIPE SIG_MAX
/* important */
#ifdef mkdir
#undef mkdir
#endif /* mkdir */
#define mkdir(x, y) mkdir(x)
#endif /* NDIR_DUMMY */